package com.hylanda.gate.prs;
import java.util.Date;

public class DateWithPrecision extends Date {
	public final static int PREC_YEAR = 1;
	public final static int PREC_MONTH = 2;
	public final static int PREC_DAY = 3;
	public final static int PREC_HOUR = 4;
	public final static int PREC_MINUTE = 5;
	public final static int PREC_SECOND = 6;
	public final static int PREC_MILL = 7;
	
	private int precision = 0;
	public DateWithPrecision(Date dt){
		super(dt.getTime());
	}
	public int getPrecision(){
		return precision ;
	}
	public void setPrecision(int prec){
		precision = prec; 
	}
}
